package algorithm;

import algorithm.impl.InsertionSort;
import algorithm.impl.SelectionSort;

public class Main {

    public static void main(String[] args) {
        int n = 10000;
        Integer[] arr1 = SortHelper.generateNearlyOrderedArray(n, 1);
        Integer[] arr2 = new Integer[n];
        System.arraycopy(arr1, 0, arr2, 0, n);

        SortHelper.testSort("InsertionSort", new InsertionSort(), arr2);
        SortHelper.testSort("SelectionSort", new SelectionSort(), arr1);

    }

}
